﻿package extend.language
{
    import com.gengine.core.*;
    import com.gengine.resource.*;

    public class LanguageConfig extends Singleton
    {
        private var _map:Object;
        private static var _instance:LanguageConfig;

        public function LanguageConfig()
        {
            this._map = new Object();
            this.parseXML(ConfigManager.instance.getJSONByFileName("language.json"));
            return;
        }// end function

        public function getString(param1:int) : String
        {
            var _loc_2:* = this._map[param1];
            return _loc_2 == null ? ("") : (_loc_2);
        }// end function

        private function parseXML(param1:Object) : void
        {
            this._map = param1;
            return;
        }// end function

        public static function get instance() : LanguageConfig
        {
            if (_instance == null)
            {
                _instance = new LanguageConfig;
            }
            return _instance;
        }// end function

    }
}
